#main {
    margin: 0 auto;
    width: 100%;
    height: 500px;
}
.ticker {
    width: 100%;
    padding: 12px 15px;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
    box-sizing: border-box;
}
.small {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 左右区域垂直居中对齐 */
}

/* 左侧垂直结构 */
.small-left {
    display: flex;
    flex-direction: column; /* 垂直排列 */
    gap: 8px; /* 币种与价格区域的垂直间距 */
}

/* 币种信息区域（上层） */
.symbol-section {
    display: flex;
    align-items: center;
}
.symbol-name {
    display: flex;
    align-items: center; /* 币种名称与下拉箭头水平对齐 */
    gap: 6px;
}
.symbol-name p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}
.symbol-name em {
    color: #333;
}
.dropdown {
    font-size: 10px;
    color: #888;
}

/* 价格与涨跌幅区域（下层）- 水平排列 */
.price-change-container {
    display: flex;
    align-items: center;
    gap: 12px; /* 金额与涨跌幅的水平间距 */
    margin-left: 2px; /* 与上层币种名称左对齐 */
}
.price {
    margin: 0;
    font-weight: 600;
}
.price.amount {
    font-size: 18px;
}
.price.change {
    font-size: 15px;
}
.color-down {
    color: #E64340;
}

/* 右侧数据区域 */
.small-right {
    display: flex;
    gap: 25px;
}
.high-low-group, .volume-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
dt {
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
}
dd {
    margin: 0;
    font-size: 12px;
    color: #333;
    font-weight: 500;
}
.comm-tabs {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    line-height: 35px;
    height: 35px;
    background: #fff;
    margin: 0;
    padding: 0;
    list-style: none;
}

.comm-tabs > li {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    width: 0;
    text-align: center;
}

.comm-tabs > li a,
.comm-tabs > li span {
    display: inline-block;
    position: relative;
    font-size: 16px;
    color: #282828;
}

.comm-tabs > li.active a,
.comm-tabs > li.active span,
.comm-tabs > li.on a,
.comm-tabs > li.on span {
    color: #ff3700;
}

.comm-tabs > li.active a:after,
.comm-tabs > li.active span:after,
.comm-tabs > li.on a:after,
.comm-tabs > li.on span:after {
    position: absolute;
    content: "";
    height: 2px;
    background: #ff3700;
    display: block;
    width: 20px;
    bottom: 3px;
    left: 0;
    right: 0;
    margin: auto;
}

.comm-tabs > li.tab-active a,
.comm-tabs > li.tab-active span {
    color: #ff3700;
}

.comm-tabs > li {
    position: relative;
}

.comm-tabs .tab-active::after {
    position: absolute;
    content: "";
    height: 2px;
    background: #ff3700;
    display: block;
    width: 20px;
    bottom: 5px;
    left: 0;
    right: 0;
    margin: auto;
}

.selector {
    position: relative;
    color: #3074c2;
    padding-right: 18px;
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    font-weight: normal;
}

.selector:after {
    position: absolute;
    content: "";
    top: 12px;
    right: 7px;
    width: 0;
    height: 0;
    border: 4px solid transparent;
    border-top: 6px solid #3074c2;
}

.selector.expanded:after {
    top: 7px;
    border: 4px solid transparent;
    border-bottom: 6px solid #3074c2;
}

.selector-items {
    position: absolute;
    right: 0px;
    top: 31px;
    background: #fff;
    border-width: 0;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    display: none;
    z-index: 98;
}

.small-screen-selected-minute {
    right: 11px;
}

.selector-items.hide {
    display: none;
}

.selector-items li {
    border-width: 0;
    border-bottom: 1px solid #ccc;
    position: relative;
    padding: 0 20px;
    font-size: 14px;
    font-weight: normal;
    white-space: nowrap;
}

.selector-items li:last-child {
    border-bottom: none;
}

.selector-items li.selected {
    color: #3074c2;
}

.selector-items li.selected:after {
    position: absolute;
    content: "";
    top: 10px;
    right: 8px;
    width: 8px;
    height: 5px;
    background: #fff;
    border-left: 1.5px solid #3074c2;
    border-bottom: 1.5px solid #3074c2;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.btns {
    position: fixed;
    z-index: 1000;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    background-color: #fff;
}

.btn {
    flex: 1;
    height: 40px;
    border-radius: 4px;
    line-height: 40px;
    text-align: center;
    color: #fff;
    font-size: 16px;
}

.btn-green {
    margin-right: 20px;
    background-color: #38ad70;
}

.btn-red {
    background-color: #fe5c57;
}

.charts-border {
    position: relative;
}

.charts {
    width: 100vw;
    height: 325px
}

.charts-label {
    position: absolute;
    left: 10px;
    top: 5px;
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.charts-label div {
    margin-right: 14px;
}

.charts-MA5 {
    color: #eef4ba;
}

.charts-MA10 {
    color: #83c1c5;
}

.charts-MA30 {
    color: #b39cd8;
}

.charts-bar-label {
    position: absolute;
    left: 10px;
    top: 76%;
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.charts-bar-label div {
    margin-right: 14px;
}

.charts-tooltip-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
}

.ctr-label {
    color: #51617b;
}

.ctr-value {
    color: #acbadf;
    margin-left: 30px;
}

.price-green {
    color: #38ad70;
}

.price-red {
    color: #fe5c57;
}

/* 对话框容器样式 */
.follow-dialog {
    position: fixed;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 1000;
}

/* 对话框头部 */
.dialog-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dialog-title {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

.dialog-close {
    font-size: 22px;
    color: #888;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.dialog-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* 对话框内容区 */
.dialog-content {
    padding: 15px 20px;
}

/* 时间选择器样式 */
.weui-cells__title {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
    padding-left: 2px;
    font-weight: 500;
}

.time-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.time-item {
    flex: 1;
    min-width: 80px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.time-item.active {
    background-color: #fff;
    border-color: #1AAD19;
    box-shadow: 0 2px 8px rgba(26, 173, 25, 0.1);
}

.time-item .time {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.time-item .profit {
    font-size: 13px;
    color: #E64340;
}

.time-item:active:not(.active) {
    background-color: #f0f0f0;
}

/* 弹出层容器样式 */
.popup-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* 买涨买跌选择器样式 */
.direction-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.direction-btn {
    flex: 1;
    padding: 10px 0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #eee;
}

.direction-btn.buy {
    background-color: #fff0f0;
    color: #E64340;
    border-color: #ffecec;
}

.direction-btn.sell {
    background-color: #f0f9f0;
    color: #1AAD19;
    border-color: #e8f4e8;
}

.direction-btn.active {
    box-shadow: 0 0 0 2px currentColor;
    font-weight: bold;
}

.direction-btn:active:not(.active) {
    opacity: 0.8;
}

/* 金额输入区域 */
.amount-input-container {
    margin-bottom: 20px;
}

/* 快速金额选项 */
.quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.quick-amount-btn {
    flex: 1;
    min-width: calc(25% - 8px); /* 每行4个按钮 */
    padding: 8px 0;
    background-color: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-amount-btn:active {
    background-color: #e8f4e8;
    border-color: #1AAD19;
    color: #1AAD19;
}

.quick-amount-btn:hover {
    background-color: #f0f0f0;
}

/* 金额输入行 */
.amount-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amount-label {
    font-size: 14px;
    color: #888;
    white-space: nowrap;
}

.amount-input-wrapper {
    flex: 1;
    display: flex;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

.amount-input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    font-size: 15px;
    color: #333;
}

.amount-input::placeholder {
    color: #ccc;
}

/* 单位选择下拉框样式 */
.amount-unit-select {
    padding: 0 12px;
    background-color: #f9f9f9;
    border: none;
    border-left: 1px solid #eee;
    font-size: 14px;
    color: #333;
    outline: none;
    cursor: pointer;
}

/* 账户信息区域 */
.account-info-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f5f5f5;
    font-weight: 500;
}

.account-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px; /* 与按钮区域分隔 */
}

.account-info-item {
    background-color: #f9f9f9;
    padding: 10px 12px;
    border-radius: 6px;
}

.account-info-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}

.account-info-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.profit-rate {
    color: #E64340; /* 收益相关红色标识 */
}

/* 确认按钮样式 */
.confirm-btn-container {
    padding-top: 10px;
}

.weui-btn_primary {
    width: 100%;
    background-color: #1AAD19;
    font-size: 16px;
    color: #fff;
    text-align: center;
    display: block;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

.weui-btn_primary:disabled {
    background-color: #a5d5a7; /* 禁用状态颜色 */
    cursor: not-allowed;
    opacity: 0.8;
}

.weui-btn_primary:not(:disabled):active {
    background-color: #148812; /* 点击反馈颜色 */
}

/* 响应式调整 */
@media (max-width: 360px) {
    .quick-amount-btn {
        min-width: calc(33.33% - 8px); /* 小屏每行3个按钮 */
        font-size: 13px;
    }

    .account-info-grid {
        grid-template-columns: 1fr; /* 小屏单列显示 */
    }

    .amount-input, .amount-unit-select, .direction-btn {
        font-size: 14px;
    }

    .weui-btn_primary {
        font-size: 15px;
        padding: 11px 0;
    }

    .time-item {
        min-width: 70px;
        padding: 10px 5px;
    }

    .time-item .time {
        font-size: 14px;
    }

    .time-item .profit {
        font-size: 12px;
    }
}